import { Instance } from '@/generated/graphql'
import { defineStore } from 'pinia'

interface Cabinet {
  // 是否展示终端
  showTerminal: boolean
  // 实例信息
  instance?: Instance
  // 连接信息
  connection?: Record<string, any>
}

export const useCabinet = defineStore('cabinet', {
  state: (): Cabinet => ({
    showTerminal: false,
    instance: undefined,
    connection: undefined
  })
})
